#! /bin/bash

set -x

mkdir bin

# mac
GOOS="darwin" GOARCH="amd64" go build -o bin/server_darwin_amd64

# windows
GOOS="windows" GOARCH="amd64" go build -o bin/server_windows_amd64.exe
GOOS="windows" GOARCH="386" go build -o bin/server_windows_386.exe

# linux
GOOS="linux" GOARCH="amd64" go build -o bin/server_linux_amd64
GOOS="linux" GOARCH="386" go build -o bin/server_linux_386


